StartFromConfiguration

Starts the KINGSTAR Subsystem using the configuration file created by KINGSTAR Configuration Tool.

Syntax

KsCommandStatus StartFromConfiguration(
     char* Configuration
);

Parameters

Configuration: the location of the .kst file, which is created using KINGSTAR Configuration Tool.

Return value

Returns the KsCommandStatus structure.

Remarks

Replaces the functions used to create, configure, and start the KINGSTAR Subsystem and the axes. The function is synchronous and will return once the Subsystem and axes are configured.

Usable EtherCAT states

ecatOffline

Example

Copy
nRet = Create(0, 0);

// Save all your system settings in a .kst file and pass the path to the API.
// Using this function can separate the configuration from program logic.
char path[260] = "C:\\Users\\currentUser\\Documents\\KINGSTAR Configuration Tool\\Standard\\Standard.kst";
Command = WaitForCommand(30, TRUE, StartFromConfiguration(path));

Requirements

  RT Win32
Minimum supported version 4.0 4.0
Header ksapi.h ksapi.h
Library KsApi_Rtss.lib KsApi.lib

See also

Create

Start